package com.entmanage.base.oa.domain;

import java.math.BigDecimal;
import java.util.List;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.entmanage.common.annotation.Excel;
import com.entmanage.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * OA报销申请主对象 oa_reimbursement_apply
 *
 * @author lsq
 * @date 2025-09-25
 */
@ApiModel(value = "OaReimbursementApply", description = "OA报销申请主对象")
public class OaReimbursementApply extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    @ApiModelProperty(value = "主键ID")
    private Long id;

    /** 申请人用户ID */
    @Excel(name = "申请人用户ID")
    @ApiModelProperty(value = "申请人用户ID")
    private Long userId;

    /** 申请人部门ID */
    @Excel(name = "申请人部门ID")
    @ApiModelProperty(value = "申请人部门ID")
    private Long deptId;

    /** 申请提交日期 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    @Excel(name = "申请提交日期", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty(value = "申请提交日期")
    private Date applyDate;

    /** 报销类型，如：差旅费、交通费、餐饮费等 */
    @Excel(name = "报销类型，如：差旅费、交通费、餐饮费等")
    @ApiModelProperty(value = "报销类型，如：差旅费、交通费、餐饮费等")
    private String reimbursementType;

    /** 报销事由/说明 */
    @Excel(name = "报销事由/说明")
    @ApiModelProperty(value = "报销事由/说明")
    private String reason;

    /** 总金额（可由子表汇总或前端传入） */
    @Excel(name = "总金额", readConverterExp = "可=由子表汇总或前端传入")
    @ApiModelProperty(value = "总金额（可由子表汇总或前端传入）")
    private BigDecimal totalAmount;

    /** 审批人ID列表，多个用逗号分隔，如：101,102,103 */
    @Excel(name = "审批人ID列表，多个用逗号分隔，如：101,102,103")
    @ApiModelProperty(value = "审批人ID列表，多个用逗号分隔，如：101,102,103")
    private String approverIds;

    /** 审批人姓名 */
    @Excel(name = "审批人姓名")
    @ApiModelProperty(value = "审批人姓名")
    private String approverNames;

    /** 抄送人ID列表，多个用逗号分隔 */
    @Excel(name = "抄送人ID列表，多个用逗号分隔")
    @ApiModelProperty(value = "抄送人ID列表，多个用逗号分隔")
    private String ccIds;

    /** 抄送人姓名 */
    @Excel(name = "抄送人姓名")
    @ApiModelProperty(value = "抄送人姓名")
    private String ccNames;

    /** 状态：PENDING待审批, APPROVED已通过, REJECTED已拒绝, CANCELLED已取消 */
    @Excel(name = "状态：PENDING待审批, APPROVED已通过, REJECTED已拒绝, CANCELLED已取消")
    @ApiModelProperty(value = "状态：PENDING待审批, APPROVED已通过, REJECTED已拒绝, CANCELLED已取消")
    private String status;

    /** 删除标记：0-正常，1-删除 */
    @ApiModelProperty(value = "删除标记：0-正常，1-删除")
    private String delFlag;

    /** OA报销申请-费用明细信息 */
    @ApiModelProperty(value = "OA报销申请-费用明细信息")
    private List<OaReimbursementDetail> oaReimbursementDetailList;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }
    public void setDeptId(Long deptId)
    {
        this.deptId = deptId;
    }

    public Long getDeptId()
    {
        return deptId;
    }
    public void setApplyDate(Date applyDate)
    {
        this.applyDate = applyDate;
    }

    public Date getApplyDate()
    {
        return applyDate;
    }
    public void setReimbursementType(String reimbursementType)
    {
        this.reimbursementType = reimbursementType;
    }

    public String getReimbursementType()
    {
        return reimbursementType;
    }
    public void setReason(String reason)
    {
        this.reason = reason;
    }

    public String getReason()
    {
        return reason;
    }
    public void setTotalAmount(BigDecimal totalAmount)
    {
        this.totalAmount = totalAmount;
    }

    public BigDecimal getTotalAmount()
    {
        return totalAmount;
    }
    public void setApproverIds(String approverIds)
    {
        this.approverIds = approverIds;
    }

    public String getApproverIds()
    {
        return approverIds;
    }
    public void setApproverNames(String approverNames)
    {
        this.approverNames = approverNames;
    }

    public String getApproverNames()
    {
        return approverNames;
    }
    public void setCcIds(String ccIds)
    {
        this.ccIds = ccIds;
    }

    public String getCcIds()
    {
        return ccIds;
    }
    public void setCcNames(String ccNames)
    {
        this.ccNames = ccNames;
    }

    public String getCcNames()
    {
        return ccNames;
    }
    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }
    public void setDelFlag(String delFlag)
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag()
    {
        return delFlag;
    }

    public List<OaReimbursementDetail> getOaReimbursementDetailList()
    {
        return oaReimbursementDetailList;
    }

    public void setOaReimbursementDetailList(List<OaReimbursementDetail> oaReimbursementDetailList)
    {
        this.oaReimbursementDetailList = oaReimbursementDetailList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("deptId", getDeptId())
            .append("applyDate", getApplyDate())
            .append("reimbursementType", getReimbursementType())
            .append("reason", getReason())
            .append("totalAmount", getTotalAmount())
            .append("approverIds", getApproverIds())
            .append("approverNames", getApproverNames())
            .append("ccIds", getCcIds())
            .append("ccNames", getCcNames())
            .append("status", getStatus())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("createBy", getCreateBy())
            .append("updateBy", getUpdateBy())
            .append("delFlag", getDelFlag())
            .append("oaReimbursementDetailList", getOaReimbursementDetailList())
            .toString();
    }
}
